/**
 * 用户相关的请求模块
 */
import request from "@/utils/request";
/**
 * 用户登录
 */
export const loginAPI = (data) => {
  return request({
    method: "POST",
    url: "user/login",
    data,
  });
};
// 获取用户信息
export const UserInfoAPI = () => {
  return request({
    url: "/user",
  });
};
// 查看用户收藏
export const userCollectionAPI = () => {
  return request({
    url: "/user/favorites",
  });
};
// 查看房源
export const userManageAPI = () => {
  return request({
    url: "/user/houses",
  });
};
